Skip to content

Conversation

osa1
Copy link
Member

@osa1 osa1 commented Sep 25, 2025

Change moved from #2540.

Because of dart-lang/sdk#31606, supportsAnsiEscapes always returns false on most modern terminals on Linux and Mac.

It's unlikely to get fixed (see link above), so instead of relying on it check assume that most modern terminals support colors and check that stdout is a tty.


cc @natebosch @jakemac53.

@osa1 osa1 requested a review from a team as a code owner September 25, 2025 12:47
@osa1 osa1 changed the title Improve canUseSpecialChars Improve canUseSpecialChars on Linux and Mac Sep 25, 2025
Copy link

PR Health

Changelog Entry
Package Changed Files
package:test_core pkgs/test_core/lib/src/util/io.dart

Changes to files need to be accounted for in their respective changelogs.

This check can be disabled by tagging the PR with skip-changelog-check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant